package cn.itlaobing.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.itlaobing.service.AccountService;

@Controller
@RequestMapping("/students")
public class Student {
	@Autowired
	private AccountService as;
	
	@RequestMapping("/hello")
	
	public String index(Model model)
	{
		model.addAttribute("account",as.findByid(2) );
		return "index";
	}
}
